package com.zxp.spi.service.impl;

import com.zxp.spi.service.HelloSpiService;
import lombok.extern.slf4j.Slf4j;

import java.lang.management.ManagementFactory;
import java.lang.management.MemoryManagerMXBean;

/**
 * @author zxp
 * @date 2021-08-23 11:42
 */
@Slf4j
public class HelloSpiServiceImpl01 implements HelloSpiService {

    @Override
    public String execute(String name) {
        String result =  name+" 01正在执行的是："+ManagementFactory.getRuntimeMXBean().getName();
        System.out.println(result);
        return result;
    }
}
